package cn.edu.scau.cmi.ema.service;

import java.util.List;
import java.util.Set;
import java.io.IOException;
import com.alibaba.fastjson.JSONObject;
import java.util.Map;
import org.springframework.web.bind.annotation.RequestParam;
import cn.edu.scau.cmi.ema.domain.*;
import cn.edu.scau.cmi.ema.domain.base.CmiPagination;


public interface FoodtypeService {

	public Foodtype saveFoodtype(Foodtype foodtype);

	public Set<Foodtype> loadFoodtypes();

	public Set<Foodtype> loadReferenceFoodtypes(Set<Foodtype> foodtypes);

	public Set<Foodtype> loadFoodtypesByIdSet(Set<Integer> foodtypesId);

	public Map<String, ?> loadFoodtypeObjectReferencedSet(Foodtype foodtype);

	public Map<String, ?> loadFoodtypeClassReferencedSet(Foodtype foodtype);

	public void deleteFoodtype(Foodtype foodtype);

	public void deleteFoodtypes(Set<Integer> deleteFoodtypesId);

	public List<Foodtype> findAllFoodtypes(Integer startResult, Integer maxRows);

	public Foodtype findFoodtypeByPrimaryKey(Integer id);

	public Integer countFoodtypes();

	public Integer countFoodtypes(CmiPagination page);

	public Integer countFoodtypesByName(String queryName);

	public Integer countFoodtypesByDetachedCriteria(CmiPagination page);

}
